import Vue from 'vue'
import Router from 'vue-router'
import IndexInfo from '../pages/index/StatisticalInfo'
import VulnerabilitySearch from '../pages/search/VulnerabilitySearch'
import ProductSearch from '../pages/search/ProductSearch'
import D3Test from '../pages/D3-learning/D3Test'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      component: IndexInfo
    },
    {
      path: '/search/vulnerability',
      component: VulnerabilitySearch
    },
    {
      path: '/search/product',
      component: ProductSearch
    },
    {
      path: '/d3',
      component: D3Test
    }
  ]
})
